package com.offline.module.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.offdissys.common.db.entity.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ZhangHaiWen
 * @title: OrderInfo
 * @projectName mybatisplustest
 * @description: 订单信息
 * @date 2021/12/1015:27
 */
@Data
@TableName(value = "order_info")
public class OrderInfo extends BaseEntity {

    /**
     *  订单id
     */
    @TableId(type = IdType.AUTO)
    private Integer orderId;

    /**
     *  订单编号
     */
    @TableField(value = "order_num")
    private String orderNum;

    /**
     * 订单金额
     */
    @TableField(value = "order_amount")
    private BigDecimal orderAmount;

    /**
     * 订单状态 0-成功 1-失败 2-取消订单
     */
    @TableField(value = "order_status")
    private Integer orderStatus;

    /**
     * 支付状态 0-成功支付 1-支付失败 2-支付超时
     */
    @TableField(value = "pay_status")
    private Integer payStatus;

    /**
     * 订单创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 支付时间
     */
    @TableField(value = "pay_time")
    private Date payTime;

}
